package com.ywz.project.system.controller;

import com.ywz.common.ResultResp;
import com.ywz.project.system.dto.req.UserPageReq;
import com.ywz.project.system.service.SysUserApiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 类描述 -> 用户API
 *
 * @Author: ywz
 * @Date: 2024/10/27
 */
@Api(tags = "用户API")
@RestController
@RequestMapping("/system/user")
public class SysUserApiController {
    @Resource
    private SysUserApiService sysUserApiService;

    /**
     * 方法描述 -> 分页查询用户
     *
     * @param req 请求参数
     * @Author: ywz
     * @Date: 2024/11/05
     */
    @GetMapping("/getUserPage")
    @ApiOperation(value = "分页查询用户")
    public ResultResp getUserPage(UserPageReq req){
        return sysUserApiService.getUserPage(req);
    }
}
